package hl.model;
// Generated 2018-5-23 22:17:46 by Hibernate Tools 4.3.5.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TEquip generated by hbm2java
 */
@Entity
@Table(name = "t_equip", catalog = "matcha_gym")
public class TEquip implements java.io.Serializable {

	private Long pkEquip;
	private TPlace TPlace;
	private String name;
	private Date buyDate;
	private String memo;
	private Date cdatetime;
	private Date mdatetime;

	public TEquip() {
	}

	public TEquip(TPlace TPlace, String name, Date buyDate, String memo, Date cdatetime, Date mdatetime) {
		this.TPlace = TPlace;
		this.name = name;
		this.buyDate = buyDate;
		this.memo = memo;
		this.cdatetime = cdatetime;
		this.mdatetime = mdatetime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "PK_EQUIP", unique = true, nullable = false)
	public Long getPkEquip() {
		return this.pkEquip;
	}

	public void setPkEquip(Long pkEquip) {
		this.pkEquip = pkEquip;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PK_PlACE")
	public TPlace getTPlace() {
		return this.TPlace;
	}

	public void setTPlace(TPlace TPlace) {
		this.TPlace = TPlace;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "BUY_DATE", length = 10)
	public Date getBuyDate() {
		return this.buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

	@Column(name = "MEMO", length = 128)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CDATETIME", length = 19)
	public Date getCdatetime() {
		return this.cdatetime;
	}

	public void setCdatetime(Date cdatetime) {
		this.cdatetime = cdatetime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MDATETIME", length = 19)
	public Date getMdatetime() {
		return this.mdatetime;
	}

	public void setMdatetime(Date mdatetime) {
		this.mdatetime = mdatetime;
	}

}
